<template>
  <div class="small-box">
    <div class="hot-box" v-for="(v,i) in RM" :key="i">
      <div class="box">
        <div class="number">
          <p>{{v.id}}</p>
        </div>
        <div class="text">
          <div class="p1">
            <p>
              <img :src="v.img1"  class="touxiang"/>
              <span>{{v.name}}</span>
            </p>
            <p>
              <b>{{v.heat}}</b>
              <span class="iconfont icon-huo"></span>
            </p>
          </div>
          <p class="pp">{{v.describe}}</p>
          <ul>
            <li v-for="(item,index) in v.imgs" :key="index">
              <!-- <img :src="im.img" /> -->
              <img :src="item.img" alt="" />
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

import getlink from "../../apis/getapi";
export default {
  name: "HomeBanner",
  data() {
    return {
      RM : [],
    };
    // console.log(this.arr);
  },
  created() {
    getlink("/data/one").then((ok) => {
      //   console.log(ok);
      this.RM = ok.data.remen;
      // console.log(this.arr);
    });
    // console.log(this.arr);
  },
};
</script>

<style scoped>
@import url(../../assets/font1/iconfont.css);
.small-box {
  width: 100%;
  height: 1.8rem;
  /* background-color: azure; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.small-box .box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}
.small-box .number {
  width: 0.3rem;
  height: 1.6rem;
  /* background-color: cyan; */
}
.small-box .number p {
  font-weight: bold;
  text-align: center;
  color: #fc4136;
  margin-top: 0.15rem;
}
.small-box .text {
  width: 3.4rem;
  height: 1.6rem;
  /* background-color: darkturquoise; */
  display: flex;
  flex-direction: column;
}
.small-box .text .p1 {
  margin-top: 0.15rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* background-color: fuchsia; */
}
.small-box .text .p1 .iconfont {
  color: #fc4136;
}
.icon-huo{
    margin-right: .1rem;
}
.small-box .text .p1 p .touxiang {
  vertical-align: middle;
  width: 0.2rem;
  border-radius: 50%;
}
.small-box .text .p1 p {
  display: inline-block;
}

.small-box .text .p1 span {
  font-size: 0.12rem;
  color: #b4b4b4;
}
.small-box .text .p1 b {
  color: #fc4136;
  margin-right: 0.08rem;
  font-weight: normal;
  font-size: 0.1rem;
  line-height: 0.24rem;
}
.small-box .text .pp {
  padding: 0.08rem 0;
  font-size: 0.13rem;
  font-weight: bold;
}
.small-box .text ul {
  display: flex;
  justify-content: space-around;
}
.small-box .text ul li {
  width: 1rem;
  height: 1rem;
}
.small-box .text ul li img {
  width: 100%;
}

#pic {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#pic img {
  width: 33%;
  height: 100%;
}
</style>